from xpinyin import Pinyin
from ldapManager import MyLdap

p = Pinyin()

l = []
myldap = MyLdap()

for i in l:
    result = p.get_pinyin(i)
    name = ''.join(result.split('-')[1:]) + '.' + result.split('-')[0]
    message = myldap.ldap_del(name)
    print(message)